<?php

use Illuminate\Http\Request;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

Route::get('/ArticleCategory/getMenuList', 'ArticleCategoryController@getMenuList');//栏目-菜单列表
Route::get('/Article/list/{cat_id}', 'ArticleController@getListByCat');//某栏目下资讯列表
Route::get('/Article/info/{id}', 'ArticleController@info');//资讯详情

Route::get('/siteinfo', 'SiteInfoController@info');//企业信息
Route::get('/banner', 'BannerController@bannerList');//banner信息

Route::post('/Goods/pay', 'GoodsController@miniappPay');//小程序订单支付
Route::post('/Goods/payNotify', 'GoodsController@miniappPayNotify');//小程序订单支付通知



//微信相关
Route::post('/wechat/getOpenid', 'WeChatController@getOpenid');//获取openid